import request from '@/utils/system/request'

// 获取数据字典类型表格数据
export function getDictTypeData(params) {
    return request({
        url: '/dict/type/page',
        method: 'get',
        params
    })
}

//批量删除
export function delBatchByIds(params) {
    return request({
        url: '/dict/type/del',
        method: 'post',
        data: {
            ids: params
        }
    })
}

//新增
export function addDictType(data) {
    return request({
        url: 'dict/type/add',
        method: 'post',
        data: data
    })
}

//更新
export function editDictType(data){
    return request({
        url: 'dict/type/edit',
        method: 'put',
        data: data
    })
}